<%@page import="org.apache.struts.Globals"%>
<%@include file="header.jsp"%>      

  <%-- to avoid direct access by url, check logged --%>
  <logic:notPresent name="loginForm" scope="session">
    <jsp:forward page="/index.jsp"/>
  </logic:notPresent>
    
  <%-- if button cancel was clicked --%>
  <logic:messagesPresent property="operation">
    <% request.setAttribute( Globals.ERROR_KEY, null ); %>
    <jsp:forward page="/index.jsp"/>
  </logic:messagesPresent>

  <html:form action="/editsenha">         
    <table>
      <tr>
        <td><bean:message key="label.Senha"/>:</td>
        <td><html:password name="editSenhaForm" property="Senha"/></td>
        <td><html:errors property="Senha"/></td>
      </tr>
      <tr>
        <td><bean:message key="label.senhaNova"/>:</td>
        <td><html:password name="editSenhaForm" property="senhaNova"/></td>
        <td><html:errors property="senhaNova"/></td>
      </tr>      
      <tr>
        <td><bean:message key="label.confirmSenha"/>:</td>
        <td><html:password name="editSenhaForm" property="confirmSenha"/></td>
        <td><html:errors property="confirmSenha"/></td>
      </tr>      
    </table>    
    <html:submit property="operation"><bean:message key="button.save"/></html:submit>
    <html:submit property="operation"><bean:message key="button.cancel"/></html:submit>    
  </html:form>
    
<%@include file="footer.jsp"%>